<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>上海锐影摄影工作室</title>
<style type="text/css">
	*{ padding:0; margin:0;}
	.login{ width:860px; margin:0 auto; padding-top:100px; font-size:12px; line-height:24px;}
	.login h2{ font-size:16px; color:#F89A1E; margin-bottom:30px;}
	.login .s{ font-size:12px; color:#999;}
	.login p{ padding:5px 0 10px 0;}
	.login p input{ width:300px; padding:5px;}
	h1{ text-align:center; color:#fff;}
</style>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
</head>

<body>
<div class="login">
	<table width="100%">
    	<tr>
        	<td bgcolor="#CCCCCC"; width="440">
            	<h1>上海锐影摄影工作室</h1>
            </td>
            <td width="50"></td>
            <td>
            <form action="<?php echo site_url("admin/admin/actionlogin");?>" method="post">
                <h2>用户登录/LOGIN</h2>
                <div class="s">用户名|密码</div>
                <p><input name="email" type="text" /></p>
                <p><input name="pwd" type="password" /></p>
                <p> <label  class="s">验证码</label><input name="captcha" type="text" />
                  <span id="captcha">  
                    <?php 
                echo $captcha_img;
                ?>  </span >  </p>
                <input name="" type="submit" value="登录">
            </form>
            </td>
        </tr>
    </table>
</div>

<?php echo md5('123789');?>

<script type="text/javascript">
$(document).ready(function(){
 
$("#captcha").click(function(){
$.ajax({
   type: "POST",
   url: "<?php echo site_url("admin/admin/ajax_captcha"); ?>",
   data: "",
   success: function(msg){
     //alert(msg);
     $("#captcha").html(msg)
   }
});

});
});
</script>

</body>
</html>

